<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>News Scroller</title>
<meta name=vs_defaultClientScript content="JavaScript">
</HEAD>

<BODY>

<div ID="container" style="DISPLAY: inline; VISIBILITY: visible; OVERFLOW: hidden; BORDER-STYLE: none;

width:130.0px;
height:150.0px;
background-color:transparent;" >

<div ID="news" style=" VISIBILITY: visible;position:relative" onmouseover="javascript:wait();" onmouseout="javascript:continu();">
<table border=0 cellpadding=1 cellspacing=0 ID="Table1" class="newsLink" style="MARGIN-LEFT: 5px"  width=javascript:newswidth;>
<tr>
<td>

<!-- Enter News Items are Here -->
This is a sample of how news can be scrolled vertically.
<br><br>
This scroller is designed specifically for IE but with a little modification will also work with Netscape.
<br><br>
When you move the mouse over this scroller it stops scrolling.
<BR><BR>
When you move the mouse out of this scroller it continues scrolling.
<BR><BR>
There is no limit to the amout of text, links or Image references that you'd want to include.
<br><br>
You may include this scroller in any site and adjust the width, height and colors to suit the surroundings by changing the appropriate values in the "container" div tag.
<br><br>
The text wraps automatically and you will not find a disturbing scrollbar appearing and disappearing.
<br><br>
There are no licence issues related to this scroller. Please feel free to modify the code and use it wherever you please!
<!-- End Of News Items -->

</td>
</tr>
</table>
</div>
</div>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var step=parseFloat(window.container.style.posTop)+parseFloat(window.container.style.posHeight);
var diff=(window.news.style.top-window.news.scrollHeight);
var scrollspeed=50; //Millisecs
function scrollnews()
{
	window.news.style.top = step;
	step-=2;
	if((parseFloat(window.news.style.posTop))<=diff)
	{
		step=parseFloat(window.container.style.posTop)+parseFloat(window.container.style.posHeight);
	}
}
var retval=setInterval("scrollnews();",scrollspeed);

function wait()
{
	clearInterval(retval);
}

function continu()
{
	retval = setInterval("scrollnews();",scrollspeed);
}
//  End -->
</script>
</body>
</html>
